import { request } from 'umi';
import { serverUrl } from './../../utils/utils';

export function loadMovieCategory(data:any) {
    return request(`${serverUrl}/api/v2/movie/coming_soon`,)
}

export function saveOne(data:any) {
    return request(`${serverUrl}/api/v1/admin/moviecategory`,{
        method:'post',
        data,
    })
}
export function updateOne(id:string|number,data:any) {
    return request(`${serverUrl}/api/v1/admin/moviecategory${id}`,{
        method:'put',
        data,
    })
}
export function deleteOne(id:string|number,data:any) {
    return request(`${serverUrl}/api/v1/admin/moviecategory${id}`,{
        method:'delete',
        data,
    })
}